<?php
/**
 * Created by PhpStorm.
 * User: Dick
 * Date: 2016/3/28
 * Time: 0:07
 */

namespace Controller;
use Method\Response;
use Model\Message;

class SendWebLog
{
    public function sendweblog(){
        $userid=$_SESSION['user']->id;
        $time=date("Y-m-d H:i:s");
        $text=$_POST['content'];
        $img=$_POST['img'];
        $message =new Message();
        $message->sendmood($userid,$text,$img,$time);
        Response::redirect('HomePage');
    }
}